package com.cyedu.tsapp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author Garne
 * @since 2021-06-26
 */
public class AppRecommended extends Model<AppRecommended> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 场景
     */
    @TableField("`group`")
    private String group;

    private String appName;

    @TableField(exist = false)
    private List<AppInfo> appInfos;

    public Integer getId() {
        return id;
    }

    public AppRecommended setId(Integer id) {
        this.id = id;
        return this;
    }
    public String getGroup() {
        return group;
    }

    public AppRecommended setGroup(String group) {
        this.group = group;
        return this;
    }

    public String getAppName() {
        return appName;
    }

    public AppRecommended setAppName(String appName) {
        this.appName = appName;
        return this;
    }

    public List<AppInfo> getAppInfos() {
        return appInfos;
    }

    public AppRecommended setAppInfos(List<AppInfo> appInfos) {
        this.appInfos = appInfos;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "AppRecommended{" +
                "id=" + id +
                ", group='" + group + '\'' +
                ", appName='" + appName + '\'' +
                ", appInfos=" + appInfos +
                '}';
    }
}
